from api.api_approve_trust import ApiApproveTrust
from api.api_recharge import ApiRecharge
from api.api_register_login import ApiRegisterLogin
from api.api_tender import ApiTender


class ApiFactory:
    def __init__(self, session):
        self.session = session

    # 获取注册登录api对象
    def get_register_login(self):
        return ApiRegisterLogin(self.session)

    # 获取认证api对象
    def get_approve(self):
        return ApiApproveTrust(self.session)

    # 获取开户充值 对象
    def get_recharge(self):
        return ApiRecharge(self.session)

    # 获取投资对象
    def get_tender(self):
        return ApiTender(self.session)
